package com.qf.staticProxy;

import com.qf.interfact.FangDongService;

/**
 *
 * 中介 -- 代理对象
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
public class FangDongProxyImpl implements FangDongService {
    FangDongService fangDongService;

    public FangDongProxyImpl(FangDongService fangDongService){
        this.fangDongService = fangDongService;
    }


    @Override
    public void zuFang() {
        System.out.println("发布广告");
        System.out.println("装修，包装。。。。");

        fangDongService.zuFang();

        System.out.println("签合同");
        System.out.println("收房租");
    }
}
